﻿using System.Timers;

namespace kill1C.Utils
{
    static class AppTimer
    {
        private static Timer timer;

        public static void Init()
        {
            timer = new Timer(1000 * 60 * 5); //каждые 5 минут
            timer.Elapsed += Tick;
            timer.Enabled = true;
        }

        private static void Tick(object sender, ElapsedEventArgs e)
        {
            Proc.KillNoWindowInstance();
        }
    }
}
